﻿@{
    ViewBag.Title = "Add Category";
    ViewBag.ManageItemsActive = "active";
}
@if (TempData["Error"] != null)
{
    <div class="alert alert-error">
        @TempData["Error"]
    </div>
}

@if (TempData["Success"] != null)
{
    <div class="alert alert-success">
        @TempData["Success"]
    </div>
}
<h2>Add Category</h2>
<div class="container-fluid">
    <div class="row-fluid">
        <div class="span6 well">

            <form class="form-horizontal" method="POST" action="~/ManageItems/CategoryAdded">
                <div class="control-group">
                    <label class="control-label" for="name">Name</label>
                    <div class="controls">
                        <input type="text" name="name" value="" pattern="[A-Za-z ]+" title="Letters only" required />
                    </div>
                </div>
                <input type="submit" class="btn btn-primary" value="Add Category" />
            </form>
        </div>
    </div>
</div>


